package com.fish.gaiety.gateway.service;

import java.util.stream.Stream;

public interface GenericPOJOService<T, ID, API> {

    T findById(ID id);

    Stream<T> findAll();

    T create(T t);

    T update(T t);

    T delete(ID id);

    T toEntity(API api);

    API toAPI(T t);
}
